package com.neusoft.bizcore.notice.system.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.jpa.model.AbstractModel;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "neuiot_notice_connect_user")
public class NoticeConnectUser extends AbstractModel {

    private static final long serialVersionUID = 1581638263248301994L;

    @Length(max = 255, message = "用户不能超过{max}位")
    @Column(length = 255, nullable = false)
    private String user;
}
